<?php

use yii\helpers\Html;
use yii\widgets\LinkPager;
use yii\grid\GridView;

/**
 * @var yii\web\View $this
 * @var amnah\yii2\user\Module $module
 * @var array $actions
 */
global $regionTypes2;
global $prodAttrCodes;
$regionTypes2 = $regionTypes;
$module = $this->context->module;

$this->title = Yii::t('user', 'Yii 2 User');

// 增加客源的按钮
$createUrl                           = [];
$createUrl[]                       = '/config/custom/create';
$createUrl['custom_name']        = $custom_name;
$createUrl['spec_id']             = $spec_id;
$createUrl['prod_spec_name']     = '字段';
$createUrl['last_url']            = $now_url;


?>


<section class="content-header">
    <h1>
        定制   <?= Html::encode($custom_name) ?> 列表视图
        <small>视图配置</small>
    </h1>
    <ol class="breadcrumb">
        <?php
        // 创建新的字段按钮
        echo Html::a( Html::tag('span', Yii::t('region', 'Create') .'新的展示字段' , ['class' => "glyphicon fa fa-plus-square"])    , $createUrl, ['class' => 'btn btn-block btn-success btn-sm']);
        ?>
    </ol>
</section>





<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header">
                    <h3 class="box-title">配置表格</h3>
                    <div class="box-tools">
                        <div class="input-group input-group-sm" style="width: 150px;">


                        </div>
                    </div>
                </div>
                <div class="box-body">
                    <div class="row">

                        <?php
                        echo    $this->render('index_context',
                            [
                                'spec_id' =>$spec_id,
                                'attrSpecs' => $attrSpecs,
                                'attrSpecsDownList' => $attrSpecsDownList,
                                'custom_name' => $custom_name,
                                'dataProvider' => $dataProvider,
                                'searchModel' =>  $searchModel]);

                        ?>

                    </div>
                </div>
            </div>
        </div>
    </div>
</section>






